package com.tansun.easycare.sso.servlet;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Test implements Serializable{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6063622384391050717L;
	
	//private Map<String,Object> res;
	private Map<String,Serializable> res;

	public Map<String, Object> getRes() {
		if(res == null) return(Map<String, Object>)null;
		Map<String, Object> resData = new HashMap<>();
		for(Map.Entry<String, Serializable> entry:res.entrySet()) {
			resData.put(entry.getKey(), entry.getValue());
		}
		return resData;
	}

	public void setRes(Map<String, Object> resData) {
		if(resData == null) res = null;
		res = new HashMap<>();
		for(Map.Entry<String, Object> entry:resData.entrySet()) {
			res.put(entry.getKey(), (Serializable)entry.getValue());
		}
	}
}
